#!/bin/bash

if [[ $(id -u) != 0 ]]; then
    echo "Please run as root or use sudo"
    exit 1
fi

PKGS=""

PKGS="${PKGS} htop"
PKGS="${PKGS} ncdu"
PKGS="${PKGS} procps"

# PKGS="${PKGS} glances"
# PKGS="${PKGS} s-tui"


SUCCESSED=""
FAILED=""

for pkg in ${PKGS}; do
    echo "Installing ${pkg}"
    apt-get install -y ${pkg} && SUCCESSED="${SUCCESSED} ${pkg}" || FAILED="${FAILED} ${pkg}"

done

echo "SUCCESSED: " ${SUCCESSED}
echo "FAILED: " ${FAILED}

